export JAVA_HOME=/cygdrive/c/jdk
export GRAILS_HOME=/cygdrive/c/grails/build_gyrocat/grails-1.0.3-SNAPSHOT
export PATH=$JAVA_HOME/bin:$GRAILS_HOME/bin:$PATH
./7za x grails-bin-1.0.3-SNAPSHOT.zip
grails create-app temp
cd temp
grails war
cp temp-0.1.war ..
cd ..
./7za x temp-0.1.war -otemp-0.1
tar xvf apache-tomcat-6.0.16.tar.gz
mv apache-tomcat-6.0.16 gyrocat-6.0.16-g103-SNAPSHOT
cp temp-0.1/WEB-INF/lib/*.jar gyrocat-6.0.16-g103-SNAPSHOT/lib
rm -Rf grails-1.0.3-SNAPSHOT
rm -Rf temp
rm -Rf temp-0.1
rm -f temp-0.1.war
tar cvfz gyrocat-6.0.16-g103-SNAPSHOT.tar.gz gyrocat-6.0.16-g103-SNAPSHOT/*
rm -Rf gyrocat-6.0.16-g103-SNAPSHOT
